import request from '@/utils/request';

export async function handleBillOk(params) {
  return request(`/osApi/accuBillApi/createBill`, {
    method: 'POST',
    body: params,
  });
}

export async function getList(params) {
  return request(`/osApi/accuBillApi/getBillList`, {
    method: 'POST',
    body: params,
  });
}

export async function queryDictItemsByCodes(params) {
  return request(`/osApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}

export async function cancleApply(params) {
  return request(`/osApi/accuBillApi/cancelPayApply`, {
    method: 'POST',
    body: params,
  });
}

export async function payApply(params) {
  return request(`/osApi/accuBillApi/payApply`, {
    method: 'POST',
    body: params,
  });
}

export async function updateBill(params) {
  return request(`/osApi/accuBillApi/updateBill`, {
    method: 'POST',
    body: params,
  });
}

export async function getDetailList(params) {
  return request(`/osApi/accuBillApi/getBillContentList`, {
    method: 'POST',
    body: params,
  });
}

export async function accuBillDetail(params) {
  return request(`/osApi/accuBillApi/getBillContent`, {
    method: 'POST',
    body: params,
  });
}

export async function getProgress(params) {
  return request(`/osApi/accuBillApi/getBillProgress`, {
    method: 'POST',
    body: params,
  });
}

export async function markPaid(params) {
  return request(`/osApi/accuBillApi/execPayed`, {
    method: 'POST',
    body: params,
  });
}

export async function checkHasTask(params) {
  return request(`/osApi/accuBillApi/getBillBatch`, {
    method: 'POST',
    body: params,
  });
}

export async function checkRtnState(params) {
  return request(`/osApi/accuBillApi/checkRtnState`, {
    method: 'POST',
    body: params,
  });
}
